package com.hoshino.momochi.service.Impl;

import com.hoshino.momochi.mapper.FocusMapper;
import com.hoshino.momochi.model.domain.Focus;
import com.hoshino.momochi.model.domain.UserDetails;
import com.hoshino.momochi.service.FocusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FocusServiceImpl implements FocusService {

    @Autowired
    private FocusMapper focusMapper;

    @Override
    public void addFocus(Focus focus) {
        focusMapper.addFocus(focus);
    }

    @Override
    public List<Long> getFocus(Focus focus) {
        return focusMapper.getFocus(focus);
    }

    @Override
    public List<Long> getLocal(Focus focus) {
        return focusMapper.getLocal(focus);
    }

    @Override
    public void delFocus(Focus focus) {
        focusMapper.delFocus(focus);
    }

    @Override
    public List<Focus> getFocusUserDetails(Focus focus) {
        return focusMapper.getFocusUserDetails(focus);
    }

    @Override
    public List<Focus> getLocalUserDetails(Focus focus) {
        return focusMapper.getLocalUserDetails(focus);
    }

    @Override
    public Long getLocalUserByUserId(Long uid, Long lid) {
        return focusMapper.getLocalUserByUserId(uid, lid);
    }

    @Override
    public void delIsDeleteAsTrue() {
        focusMapper.delIsDeleteAsTrue();
    }
}
